/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mygameframework.states;

/**
 * 泛型 T 是持有该状态的个体
 * @author bill
 */
public interface  IState<T> {
//    private State(){};
    void enter(T entity);
    void execute(T entity,long elapsedTime);
    void exit(T entity);
//    T getStateOwner();
    /**
     * 处理消息
     * @param entity 状态拥有者
     * @param msg 状态拥有者要处理的消息
     * @return
     */
//    boolean onMessage(T entity,Telegram msg);
//    static <T> T getInstance(){
//        return null;
//    }
}
